package com.seckill.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 秒杀特价农产品
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SeckillProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    //商品名称
    private String name;

    //商品原价
    private BigDecimal originalPrice;

    //秒杀价格
    private BigDecimal seckillPrice;

    //商品描述
    private String description;

    //商品图片
    private String image;

    //所属活动id
    private Long activityId;

    //库存
    private Integer stock;

    //已售数量
    private Integer soldCount;

    //限购数量
    private Integer limitCount;

    //创建时间
    private LocalDateTime createTime;

    //更新时间
    private LocalDateTime updateTime;

    //创建人
    private Long createUser;

    //修改人
    private Long updateUser;
}